package CircularQueueDeom;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2024-03-15
 * Time: 10:26
 */
public class CircularQueueFlgTest {
    public static void main(String[] args) {
        CircularQueueFlg circularQueueFlg = new CircularQueueFlg();
        circularQueueFlg.offer(1);
        circularQueueFlg.offer(2);
        circularQueueFlg.offer(3);
        System.out.println(circularQueueFlg.poll());
        circularQueueFlg.offer(4);
        circularQueueFlg.offer(5);
        circularQueueFlg.offer(6);
        circularQueueFlg.offer(7);
        circularQueueFlg.offer(8);
        circularQueueFlg.offer(9);
        System.out.println(circularQueueFlg.Front());
        System.out.println(circularQueueFlg.Rear());
    }
}
